#include "../kore2.h"

kore::ui::Surface::Surface(int width, int height)
{
	this->m_surface = new kore::sdl::SdlSurface(width, height);
}

kore::ui::Surface::~Surface()
{
	delete this->m_surface;
}

void kore::ui::Surface::drawRect(int x, int y, int width, int height, SDL_Color color)
{
	Uint32 c = color.r + (color.g << 8) + (color.b << 16);
	rectangleColor(this->m_surface->getSurface(), (Sint16)x, (Sint16)y, (Sint16)(x+width), (Sint16)(y+height), c);
}

void kore::ui::Surface::drawFillRect(int x, int y, int width, int height, SDL_Color color)
{
	Uint32 c = color.r + (color.g << 8) + (color.b << 16);
	boxColor(this->m_surface->getSurface(), (Sint16)x, (Sint16)y, (Sint16)(x+width), (Sint16)(y+height), c);
}

void kore::ui::Surface::drawSurface(int x, int y, kore::ui::Surface* surface)
{
	
}